﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shopping Cart - Wholesale Electronics from</title>
<link href="../Public/css/cartde_1.css" rel="stylesheet" type="text/css" />
<load href="./Public/Js/jquery.min.js"/>
</head>

<body>
<div id="header">
   <div class="tlogo"><a href="http://wwww.{$domain}" ><img src="http://www.{$domain}/images/logo.gif"  /></a></div>
  <div class="trg"><img src="../Public/images/TS.JPG"  />
   <p><img src="../Public/images/sh2.gif" />SSL-verschlüsselte Datenübertragung.<br />
   <img src="../Public/images/sh2.gif" />Sicherer Einkauf mit Geld zurück Garantie.</p></div>
  <ul class="toplb">
   <li><img src="../Public/images/shopping_07.gif" /></li>
   <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
   <li><img src="../Public/images/shopping_09.gif" /></li>
   <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
   <li><img src="../Public/images/shopping_11.gif" /></li>
   <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
   <li><img src="../Public/images/shopping_13.gif" /></li>
   </ul>
<div class="clear"></div>
</div>


<div id="content">
<form method="post" action="" name="form1" id="form1"> 
<div id="sidebar_left">   
<div class="bar_nav">
           <p><span class="STYLE1">Produkt Information</span></p></div>
           <div class="option">
            <label><span class="STYLE1">Transportation-Modus ：</span>
              <select id="ListBoxShipping" size="4" name="fist" onchange="shipping(this.value)">
                <option selected="selected" value="Air Mail,{@a.logisticsprice1}">Air Mail({$currency}{@a.logisticsprice1})</option>
                <option value="UPS/EMS Express,{@a.logisticsprice2}">UPS/DHL Express({$currency}{@a.logisticsprice2})</option>
              </select>
            </label>
      </div>
        
    <div class="pro_tab">
    <volist name="a" id="cart">   
   <table class="prnav_tab">
   <tr><td class="prbone">Produkt</td><td>Anzahl</td><td>Preis</td><td class="prblast"></td></tr>
   </table>
    <table class="prin">
    <tr><td class="prbone">{$cart.productcode}</td>
         <input type="hidden" name="domain" id="domain" value="{@a.domain}" />
		<input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
         <td><input id="num{$cart.productcode}" name="n_{$cart.productcode}"  type="text" size="5" value="{$cart.num}" onChange="ChangeTotal(this);" maxlength="5" />
         <input class="cen" type="image" name="submit" src="../Public/images/shrg_03.gif" ></td>
         <td>{$currency}{$cart.n_price|number_format=###,2}</td>
         <td class="prblast"><a href="?a=delid&pidmo={$cart.productcode}&domain={@a.domain}&currency_code={$currency_code}"><img src="../Public/images/shrg_05.gif"  /></a></td>
   </tr></table>
   </volist>
         </div>
          <div class="prtl">
         <ul class="prtlf"><li>Versand  ：</li><li>Produkt  ：</li></ul>
         <ul class="prtlr STYLE4"><li><strong><span id="LiteralGrandTotal"><span id="LiteralShippingSubtotal">{$currency} {$a_prices-$a_price|number_format=###,2}</span></span></strong></li>
           <li><strong><span id="LiteralProductSubtotal">{$currency} {$a_price|number_format=###,2}</span></strong></li></ul>
           <ul class="prtll"><li class="tla STYLE1">Endbetrag  ：</li><li class="tlb STYLE4"><strong><span  id="total_js">{$a_prices|number_format=###,2}</span></strong></li></ul>
         </div>
         
        <span class="confr_pic"><img src="../Public/images/continue_de2.gif" /></span> 
     </div>
     <input type="hidden" name="mo_b" id="mo_b" value="{$a_price|number_format=###,2}" />
	 <input type="hidden" name="mo_bb" id="mo_bb" value="{$a_price|number_format=###,2}" />
     <input type="hidden" name="proallnum" id="proallnum" value="{$proallnum}" />
 <script type="text/javascript">

function ChangeTotal(num)
{	var a=parseInt($(num).val());
	if(!isNaN(a))
	{
		if(a<1)
		{
			$(num).val(1);
		}else
		{
			$(num).val(a);
		}
	}else{
		$(num).val(1);
	}
	$("#form1").submit(); 
}

function shipping(val){
	
str=val.split(",");
$('#transportation').val(str[0]);
$('#logisticsprice').val(str[1]);
shipping2=parseFloat(str[1])*$('#proallnum').val();
$('#LiteralShippingSubtotal').html('{$currency} '+shipping2.toFixed(2));
mo_bb=$('#mo_bb').val();
reg=/,/gi;
mo_bb=mo_bb.replace(reg,'');
str[1]=parseFloat(mo_bb)+parseFloat(str[1])*$('#proallnum').val();
str[1]=str[1].toFixed(2);
str[1]=CommaFormatted(str[1]);
//$('#LiteralProductSubtotal').html('{$currency} '+str[1]);
$('#mo_b').val(str[1]);
$('#total_js').html($('#mo_b').val());
}

function CommaFormatted(amount) {
    var delimiter = ",";
    amount = new String(amount);
    var a = amount.split('.',2)
    var d = a[1];
    var i = parseInt(a[0]);
    if(isNaN(i)) { return ''; }
    var minus = '';
    if(i < 0) { minus = '-'; }
    i = Math.abs(i);
    var n = new String(i);
    var a = [];
    while(n.length > 3)
    {
        var nn = n.substr(n.length-3);
        a.unshift(nn);
        n = n.substr(0,n.length-3);
    }
    if(n.length > 0) { a.unshift(n); }
    n = a.join(delimiter);
    if(d.length < 1) { amount = n; }
    else { amount = n + '.' + d; }
    amount = minus + amount;
    return amount;
}



</script>
    </form>  
  <form method="post" action="?m=Index&a=sendorder" id="form11" onsubmit="return userinfo()">
     <div id="sidebar_right">
         <div class="bar_navrg">
           <p><span class="STYLE1">Adreßangaben</span></p></div>
       <table class="bar_tabrg" cellspacing="5">
           <tr>
             <td class="tba">Vorname</td>
             <td><input type="text" name="first_name" id="yjfirst_name"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="first_nameshow"></span>*</FONT></td>
           </tr>
           <tr>
             <td class="tba">Nachname</td>
       <td><input type="text" name="last_name" id="yjlast_name"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="last_nameshow"></span>*</FONT></td>
           </tr>
           <tr>
             <td class="tba">Firmenname</td>
           <td><INPUT maxLength=35 
                              size=25 name=client_companyship> </td>
           </tr>
           <tr>
             <td class="tba">Straße und Hausnummer</td>
             <td><input type="text" name="address1" id="yjaddress1" size="35" />
                            <FONT 
                              color=#ff0000><span id="address1show"></span>*</FONT></td>
           </tr>
           <tr>
             <td class="tba">Zusatzinformationen(optional)</td>
             <td><input type="text" name="address2" /></td>
           </tr>
           <tr>
             <td class="tba">Postleitzahl</td>
             <td><input type="text" name="zip" id="yjzip"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="zipshow"></span>*</FONT></td>
           </tr>
           <tr><td class="tba">Ort</td><td><input type="text" name="city" id="yjcity"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="cityshow"></span>*</FONT></td></tr>
           <tr>
             <td class="td_main">Land</td>
             <td class="td_main"><SELECT id='country' 
                              name=client_countryship length="15" onchange="updatecountry();"> 
<option value="">Land auswählen</option>
<option selected="" value="DE">Deutschland</option>
<option value="AT">Österreich</option>
<option value="CH">Schweiz</option>
<option value="BE">Belgien</option>
<option value="AL">Albanien</option>
<option value="DZ">Algerien</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AG">Antigua und Barbuda</option>
<option value="AR">Argentinien</option>
<option value="AM">Armenien</option>
<option value="AW">Aruba</option>
<option value="AZ">Aserbaidschan</option>
<option value="ET">Äthiopien</option>
<option value="AU">Australien</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BB">Barbados</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivien</option>
<option value="BA">Bosnien und Herzegowina</option>
<option value="BW">Botsuana</option>
<option value="BR">Brasilien</option>
<option value="VG">Britische Jungferninseln</option>
<option value="BN">Brunei</option>
<option value="BG">Bulgarien</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KY">Cayman-Inseln</option>
<option value="CL">Chile</option>
<option value="C2">China</option>
<option value="CK">Cook-Inseln</option>
<option value="CR">Costa Rica</option>
<option value="DK">Dänemark</option>
<option value="DM">Dominica</option>
<option value="DO">Dominikanische Republik</option>
<option value="CD">DR Kongo</option>
<option value="DJ">Dschibuti</option>
<option value="EC">Ecuador</option>
<option value="SV">El Salvador</option>
<option value="ER">Eritrea</option>
<option value="EE">Estland</option>
<option value="FK">Falklandinseln</option>
<option value="FO">Färöer-Inseln</option>
<option value="FJ">Fidschi</option>
<option value="FI">Finnland</option>
<option value="FR">Frankreich</option>
<option value="GF">Französisch-Guyana</option>
<option value="PF">Französisch-Polynesien</option>
<option value="GA">Gabun</option>
<option value="GM">Gambia</option>
<option value="GI">Gibraltar</option>
<option value="GD">Grenada</option>
<option value="GR">Griechenland</option>
<option value="GL">Grönland</option>
<option value="GB">Großbritannien</option>
<option value="GP">Guadeloupe</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GW">Guinea-Bissau</option>
<option value="GY">Guyana</option>
<option value="HN">Honduras</option>
<option value="HK">Hongkong</option>
<option value="IN">Indien</option>
<option value="ID">Indonesien</option>
<option value="IE">Irland</option>
<option value="IS">Island</option>
<option value="IL">Israel</option>
<option value="IT">Italien</option>
<option value="JM">Jamaika</option>
<option value="JP">Japan</option>
<option value="YE">Jemen</option>
<option value="JO">Jordanien</option>
<option value="KH">Kambodscha</option>
<option value="CA">Kanada</option>
<option value="CV">Kap Verde</option>
<option value="KZ">Kasachstan</option>
<option value="QA">Katar</option>
<option value="KE">Kenia</option>
<option value="KG">Kirgisistan</option>
<option value="KI">Kiribati</option>
<option value="CO">Kolumbien</option>
<option value="KM">Komoren</option>
<option value="HR">Kroatien</option>
<option value="KW">Kuwait</option>
<option value="LA">Laos</option>
<option value="LS">Lesotho</option>
<option value="LV">Lettland</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Litauen</option>
<option value="LU">Luxemburg</option>
<option value="MG">Madagaskar</option>
<option value="MW">Malawi</option>
<option value="MY">Malaysia</option>
<option value="MV">Malediven</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MA">Marokko</option>
<option value="MH">Marshall-Inseln</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauretanien</option>
<option value="MU">Mauritius</option>
<option value="YT">Mayotte</option>
<option value="MX">Mexiko</option>
<option value="FM">Mikronesien</option>
<option value="MN">Mongolei</option>
<option value="MS">Montserrat</option>
<option value="MZ">Mosambik</option>
<option value="NA">Namibia</option>
<option value="NR">Nauru</option>
<option value="NP">Nepal</option>
<option value="NC">Neukaledonien</option>
<option value="NZ">Neuseeland</option>
<option value="NI">Nicaragua</option>
<option value="NL">Niederlande</option>
<option value="AN">Niederländische Antillen</option>
<option value="NE">Niger</option>
<option value="NU">Niue</option>
<option value="NF">Norfolk-Insel</option>
<option value="NO">Norwegen</option>
<option value="OM">Oman</option>
<option value="PW">Palau</option>
<option value="PA">Panama</option>
<option value="PG">Papua-Neuguinea</option>
<option value="PE">Peru</option>
<option value="PH">Philippinen</option>
<option value="PN">Pitcairninseln</option>
<option value="PL">Polen</option>
<option value="PT">Portugal</option>
<option value="CG">Republik Kongo</option>
<option value="RE">Reunion</option>
<option value="RW">Ruanda</option>
<option value="RO">Rumänien</option>
<option value="RU">Russland</option>
<option value="PM">Saint-Pierre und Miquelon</option>
<option value="SB">Salomonen</option>
<option value="ZM">Sambia</option>
<option value="WS">Samoa</option>
<option value="SM">San Marino</option>
<option value="ST">São Tomé und Príncipe</option>
<option value="SA">Saudi-Arabien</option>
<option value="SE">Schweden</option>
<option value="SN">Senegal</option>
<option value="SC">Seychellen</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapur</option>
<option value="SK">Slowakei</option>
<option value="SI">Slowenien</option>
<option value="SO">Somalia</option>
<option value="ES">Spanien</option>
<option value="LK">Sri Lanka</option>
<option value="SH">St. Helena</option>
<option value="KN">St. Kitts und Nevis</option>
<option value="LC">St. Lucia</option>
<option value="VC">St. Vincent und die Grenadinen</option>
<option value="ZA">Südafrika</option>
<option value="KR">Südkorea</option>
<option value="SR">Surinam</option>
<option value="SJ">Svalbard und Jan-Mayen-Insel</option>
<option value="SZ">Swasiland</option>
<option value="TJ">Tadschikistan</option>
<option value="TW">Taiwan</option>
<option value="TZ">Tansania</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad und Tobago</option>
<option value="TD">Tschad</option>
<option value="CZ">Tschechische Republik</option>
<option value="TN">Tunesien</option>
<option value="TR">Türkei</option>
<option value="TM">Turkmenistan</option>
<option value="TC">Turks- und Caicos-Inseln</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="HU">Ungarn</option>
<option value="UY">Uruguay</option>
<option value="US">USA</option>
<option value="VU">Vanuatu</option>
<option value="VA">Vatikanstadt</option>
<option value="VE">Venezuela</option>
<option value="AE">Vereinigte Arabische Emirate</option>
<option value="VN">Vietnam</option>
<option value="WF">Wallis und Futuna</option>
<option value="CY">Zypern</option></SELECT>   

				<img src="../Public/images/germany.gif"/> <img src="../Public/images/austria.gif"/> <img src="../Public/images/swiss.gif"/> <img src="../Public/images/belgium.gif"/>   </td>
           </tr>
           <tr>
             <td class="tba">Telefon</td>
             <td><INPUT size=5 type="text" name="night_phone_a" id="yjnight_phone_a">
                             <INPUT size=6 type="text" name="night_phone_b" id="yjnight_phone_b"> 
                             <INPUT size=6 type="text" name="night_phone_c" id="yjnight_phone_c">&nbsp;&nbsp;
                             <FONT color=#ff0000>
                             <span id="night_phone_ashow"></span>
                             <span id="night_phone_bshow"></span>
                             <span id="night_phone_cshow"></span>
                             </FONT>
			</td>
           </tr>
           <tr>
             <td class="tba">e-Mail</td>
             <td><input type="text" name="email" id="yzemail"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="emailshow"></span>* Erforderlich! Liefer-Informationen mitteilen</FONT></td>
           </tr>
           <tr>
             <td class="tba">Bemerkung</td>
             <td><TEXTAREA rows=5 cols=30 name=client_remark></TEXTAREA></td>
           </tr>
       </table>
       
       <div class="conft"><p class="conft_te"><a href="#">Wenn Ihre Rechnungsanschrift eine andere ist, dann geben Sie diese bitte hier ein.</a></p>
   		  <span class="conft_in"><input type="hidden" name="country" id="recountry" value="" />
			<input type="hidden" name="tracking" id="tracking" value="1" />
			<input type="hidden" name="destination" id="destination" value="Afghanistan" />
			<input type="hidden" name="transportation" id="transportation" value="Air Mail" />
			<input type="hidden" name="logisticsprice" id="logisticsprice" value="{@a.logisticsprice1}" />
			<input type="hidden" name="domain" id="domain" value="{@a.domain}" />
			 <input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
			<input type="image" src="../Public/images/next_de2.gif" /></span>
     </div>
     
     </div>
</form>  

     <div class="clear"></div>
</div>


<div class="foot">
   <div class="footer">
   <img src="../Public/images/shopping_39.gif" /><img src="../Public/images/shopping_41.gif"  /><img src="../Public/images/shopping_43.gif"  />
    <p>Alle Preise in EURO inklusive der gesetzlichen Umsatzsteuer zuzüglich anfallender Versand- und Zahlungskosten. Alle Angebote sind freibleibend. Irrtümer und Änderungen vorbehalten. Alle genannten Namen, Marken und Logos sind Eigentum der jeweiligen Inhaber. ©2004.
</p>
   </div>
</div>
 <script type="text/javascript"><!--
 function showBilling(){
	    var bln_check = $('#isSame').attr('checked');
	    if(bln_check){
	        $('#div2').show();
	    }else{     
	        $('#div2').hide();   
	    }
	}

 function updatecountry(){
	 	
		document.getElementById('recountry').value=document.getElementById("country").value;
	}


 
 var yjfirst_name=document.getElementById('yjfirst_name');
 var first_nameshow=document.getElementById('first_nameshow');
 var yjlast_name=document.getElementById('yjlast_name');
 var last_nameshow=document.getElementById('last_nameshow');
 var yjaddress1=document.getElementById('yjaddress1');
 var address1show=document.getElementById('address1show');
 var yjzip=document.getElementById('yjzip');
 var zipshow=document.getElementById('zipshow');
 var yjcity=document.getElementById('yjcity');
 var cityshow=document.getElementById('cityshow');
 var yjnight_phone_a=document.getElementById('yjnight_phone_a');
 var yjnight_phone_b=document.getElementById('yjnight_phone_b');
 var yjnight_phone_c=document.getElementById('yjnight_phone_c');
 var night_phone_ashow=document.getElementById('night_phone_ashow');
 var night_phone_bshow=document.getElementById('night_phone_bshow');
 var night_phone_cshow=document.getElementById('night_phone_cshow');
 var oEmail=document.getElementById('yzemail');
 var emailshow=document.getElementById('emailshow');
 
 
	function userinfo(){
		 var user=new RegExp(/^[\w]/);
		 var email=new RegExp(/\w+.*@\w+.*\.\w+.*/);
		 var numzz=new RegExp(/^[0-9]*$/);
		 var address=new RegExp(/[\w]/);
	
		 if(!user.test(yjfirst_name.value))
		 {
			 first_nameshow.innerHTML='Le prénom est obligatoire !';
			   return false;
		 }else{first_nameshow.innerHTML='';}
		if(!user.test(yjlast_name.value))
		 {
			 last_nameshow.innerHTML='Le nom est obligatoire !';
			   return false;
		 }else {last_nameshow.innerHTML='';}
		if(!address.test(yjaddress1.value))
		 {
			 address1show.innerHTML='Le no. et le nom de la voie doivent être rensignés!';
			   return false;
		 }else {address1show.innerHTML='';}
		if(!user.test(yjzip.value))
		 {
			 zipshow.innerHTML='Le code postal est faux !';
			   return false;
		 }else {zipshow.innerHTML='';}
		if(!user.test(yjcity.value))
		 {
			 cityshow.innerHTML='La ville est obligatoire !';
			   return false;
		 }else {cityshow.innerHTML='';}
		if(!numzz.test(yjnight_phone_a.value))
		 {
			 night_phone_ashow.innerHTML='Le téléphone est obligatoire !';
			   return false;
		 }else {night_phone_ashow.innerHTML='';}
		if(!numzz.test(yjnight_phone_b.value))
		 {
			 night_phone_bshow.innerHTML='Le téléphone est obligatoire !';
			   return false;
		 }else {night_phone_bshow.innerHTML='';}
		if(!numzz.test(yjnight_phone_c.value))
		 {
			 night_phone_cshow.innerHTML='Le téléphone est obligatoire !';
			   return false;
		 }else {night_phone_cshow.innerHTML='';}
		if(!email.test(oEmail.value))
		 {
			emailshow.innerHTML="L'email n'est pas valide !";
			   return false;
		  }else{emailshow.innerHTML='';}
	}
	
--></script>
</body>
</html>
